/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hydms.healthcheck.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

/**
 * 卫生检查Entity
 * @author 刘健
 * @version 2017-04-05
 */
public class DmsHealthCheck extends DataEntity<DmsHealthCheck> {
	
	private static final long serialVersionUID = 1L;
	private Date checkDate;		// 检查日期
	private String dormitoryNumber;		// 宿舍号
	private String ground;		// 地面
	private String metop;		// 墙面
	private String balcony;		// 阳台
	private String others;		// 其它
	private String checkResult;		// 检查结果
	
	public DmsHealthCheck() {
		super();
	}

	public DmsHealthCheck(String id){
		super(id);
	}

	@JsonFormat(pattern = "yyyy-MM-dd")
	@ExcelField(title="检查日期",type=0, align=2, sort=10)
	public Date getCheckDate() {
		return checkDate;
	}

	public void setCheckDate(Date checkDate) {
		this.checkDate = checkDate;
	}
	
	@Length(min=0, max=20, message="宿舍号长度必须介于 0 和 20 之间")
	@ExcelField(title="宿舍号",type=0, align=2, sort=20)
	public String getDormitoryNumber() {
		return dormitoryNumber;
	}

	public void setDormitoryNumber(String dormitoryNumber) {
		this.dormitoryNumber = dormitoryNumber;
	}
	
	@Length(min=0, max=20, message="地面长度必须介于 0 和 100 之间")
	@ExcelField(title="地面",type=0, align=2, sort=30)
	public String getGround() {
		return ground;
	}

	public void setGround(String ground) {
		this.ground = ground;
	}
	
	@Length(min=0, max=20, message="墙面长度必须介于 0 和 100 之间")
	@ExcelField(title="墙面",type=0, align=2, sort=40)
	public String getMetop() {
		return metop;
	}

	public void setMetop(String metop) {
		this.metop = metop;
	}
	
	@Length(min=0, max=20, message="阳台长度必须介于 0 和 100 之间")
	@ExcelField(title="阳台",type=0, align=2, sort=50)
	public String getBalcony() {
		return balcony;
	}

	public void setBalcony(String balcony) {
		this.balcony = balcony;
	}
	
	@Length(min=0, max=200, message="其它长度必须介于 0 和 100 之间")
	@ExcelField(title="其它",type=0, align=2, sort=60)
	public String getOthers() {
		return others;
	}

	public void setOthers(String others) {
		this.others = others;
	}
	
	@Length(min=0, max=255, message="检查结果长度必须介于 0 和 255 之间")
	@ExcelField(title="检查结果",type=0, align=2, sort=70)
	public String getCheckResult() {
		return checkResult;
	}

	public void setCheckResult(String checkResult) {
		this.checkResult = checkResult;
	}
	
}